<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //剩余运算和扩展运算
        //剩余运算/rest运算： 将单个值，变成数组
        // function show(...args){
        //    console.log(args);
        // }
        // show(10,20,30)

        //扩展运算: 将数组---单个值
        // console.log(Math.max(10,30,3,4));

        // var arr=[10,30,40,20];
        // //console.log(...arr);
        // console.log(Math.max(...arr));

        function show(...args){
           console.log(...args);
        }
        show(10,20,30)

    </script>
</body>
</html>